package com.ruoyi.business.mapper;

import com.ruoyi.business.domain.Category;
import com.ruoyi.business.domain.Depart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * CategoryMapper接口
 *
 * @author win
 * @date 2021-06-14
 */
public interface DepartMapper
{
    public Depart selectDepartById(Long id);

    /***
     * @return 结果
     */
    public List<Depart> selectDepartList(Depart depart);

    /***
     * @return 结果
     */
    public int insertDepart(Depart depart);

    /***
     * @return 结果
     */
    public int updateDepart(Depart depart);

    /***
     * @return 结果
     */
    public int deleteDepartById(Long id);

    /***
     * @return 结果
     */
    public int deleteDepartByIds(Long[] ids);

    /***
     * @return 结果
     */
    public List<Depart> selectDepartListWithLimit(@Param("depart") Depart depart, @Param("limit") Integer limit);
}
